<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$title?></title>
<?= link_tag('resources/css/reset.css','stylesheet','text/css','','screen')?>
<?= link_tag('resources/css/style.css','stylesheet','text/css','','screen')?>
<?= link_tag('resources/css/invalid.css','stylesheet','text/css','','screen')?>	
<script type="text/javascript" src="<?=base_url('resources/scripts/jquery-1.3.2.min.js')?>"></script>
<script type="text/javascript" src="<?=base_url('resources/scripts/simpla.jquery.configuration.js')?>"></script>
<script type="text/javascript" src="<?=base_url('resources/scripts/facebox.j')?>s"></script>
<script type="text/javascript" src="<?=base_url('resources/scripts/jquery.wysiwyg.js')?>"></script>
<!--script type="text/javascript" src="<?=base_url('resources/scripts/jquery.datePicker.js')?>"></script>
<script type="text/javascript" src="<?=base_url('resources/scripts/jquery.date.js')?>"></script-->
<script type="text/javascript">
//<![CDATA[
/**
* Window popup
*/
function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
	return false;
}
//]]>
</script>
<script type="text/javascript" src="<?=base_url('ckeditor/ckeditor.js')?>"></script>
<script type="text/javascript" src="<?=base_url('ckfinder/ckfinder.js')?>"></script>
</head>
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="#"><?=img(array( 
							'src'	=> base_url().'resources/images/logo.png',
							'id'	=> 'logo',
							'alt'	=> "Simpla Admin logo"
						));?></a>
		  
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				Hello, <a href="#" title="Edit your profile"><?=$username?></a>, you have <a href="#messages" rel="modal" title="3 Messages">3 Messages</a><br />
				<br />
				<a href="#" title="View the Site">View the Site</a> | <a href="<?=site_url('adm/logout');?>" title="Sign Out">Sign Out</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
				
				<li>
					<a href="<?=site_url('adm/category')?>" class="nav-top-item no-submenu <?=$in_category ?>"> <!-- Add the class "no-submenu" to menu items with no sub menu --><?=$this->lang->line('CATEGORY')?></a>       
				</li>
				
				<li> 
					<a href="<?=site_url('adm/topic/'.$info['id'].'/create')?>" class="nav-top-item no-submenu <?=$in_topic ?>""> <!-- Add the class "current" to current menu item -->
					<?=$this->lang->line('topic')?></a>
				</li>
				     
				<li> 
					<a href="<?=site_url('adm/slide')?>" class="nav-top-item no-submenu <?=$in_slide?>""> <!-- Add the class "current" to current menu item -->
					</><?=$this->lang->line('SLIDE')?></a>
				</li> 
				<li> 
					<a href="<?=site_url('adm/user')?>" class="nav-top-item no-submenu <?=$in_user  ?>""> <!-- Add the class "current" to current menu item -->
					</><?=$this->lang->line('User')?></a>
				</li>
				<li>
					<a href="<?=site_url('adm/setting')?>" class="nav-top-item no-submenu <?=$in_setting ?>"">
						<?=$this->lang->line('Setting')?></a>
					</a>
				</li>
			</ul> <!-- End #main-nav -->
			
			<div id="messages" style="display: none"> <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
				
				<h3>3 Messages</h3>
			 
				<p>
					<strong>17th May 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>2nd May 2009</strong> by Jane Doe<br />
					Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>25th April 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
				
				<form action="#" method="post">
					
					<h4>New Message</h4>
					
					<fieldset>
						<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
					</fieldset>
					
					<fieldset>
					
						<select name="dropdown" class="small-input">
							<option value="option1">Send to...</option>
							<option value="option2">Everyone</option>
							<option value="option3">Admin</option>
							<option value="option4">Jane Doe</option>
						</select>
						
						<input class="button" type="submit" value="Send" />
						
					</fieldset>
					
				</form>
				
			</div> <!-- End #messages -->
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					</div>
				</div>
			</noscript>
			
			<!-- Page Head -->
<script type="text/javascript">
//<![CDATA[
	$(document).ready(function(){
			currentTab = $('.content-box ul.content-box-tabs li a.current').attr('href');
			$(currentTab).show();
	});
//]]>
</script>